Skip to main content

enq: TS - contention

Short Description

Enqueue wait. Temporary Segment (also TableSpace)

Additional Informationโ€‹

An enqueue is a wait for a resource held by another.

enq: TS - contention has been seen when temporary tablespaces are being dropped.

How to reduce this waitโ€‹

Ensure no sessions are using temporary segments in the tablespace you are trying to drop. Donghauโ€™s blog has SQL to allow identification of temporary segments users.

SELECT se.username username, se.SID sid, se.serial# serial#, se.status status, se.sql_hash_value, se.prev_hash_value,se.machine machine, su.TABLESPACE tablespace,su.segtype, su.CONTENTS CONTENTS FROM v$session se, v$sort_usage su WHERE se.saddr=su.session_addr;

Oracle Docs - Oracle Enqueue Names

Donghua's Blog - Drop temporary tablespace hang with "enq: TS - contention"

Search onlineโ€‹

If this article doesn't have the information you need you can try searching online. Remember, you can contribute suggestions to this page.